package com.jiyun.service;

import com.jiyun.comfig.R;

import com.jiyun.entity.Technician;
import com.jiyun.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;


import java.util.List;

/**
 * (User)表服务接口
 *
 * @author LYT
 * @since 2025-01-17 18:29:06
 */
public interface UserService extends IService<User> {

    User login(User user);

    R sendCode(String phone, String code);

    void register(User user);

    User checkPhone(User user);

    void updatePassword(User user);

    List<User> findAllPhone();

    int getCountCoupon(Long id);

    int getFavoriteCount(Long userId);

    List<Technician> getFavoriteTechnicians(Long userId);

    Integer updateMonuey(Integer id, Integer money);
}
